package controller;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author : GuoFei
 * @date : 2018/11/16 14:48
 */
@Controller
public class MessageController {

    @RequestMapping("test")
    @ResponseBody
    public String test(String txt) {
        return txt;
    }
    @RequestMapping("startServer")
    @ResponseBody
    public String startServer(String txt) {
        return txt;
    }
    @RequestMapping("startClient")
    @ResponseBody
    public String startClient(String txt) {
        return txt;
    }
    @RequestMapping("sendMessageToServer")
    @ResponseBody
    public String sendMessageToServer(String txt) {
        return txt;
    }



}
